package com.lv.phuotbacnam.bl.utils;

import android.os.Handler;

import com.lv.phuotbacnam.bl.callback.CallBackFromParse;

public class MyHandler {
	private Handler mHandler;
	private long mTimeDelay;
	private CallBackFromParse<Object, Object> mCallBackFromParse;

	public MyHandler(long timeDelay,
			CallBackFromParse<Object, Object> callBackFromParse) {
		this.mTimeDelay = timeDelay;
		this.mCallBackFromParse = callBackFromParse;
		mHandler = new Handler();
	}

	public void run() {
		mHandler.postDelayed(new Runnable() {

			@Override
			public void run() {
				mCallBackFromParse.done("", "");
			}
		}, this.mTimeDelay);
	}

}
